import config from "@/config"
import http from "@/utils/request"
export default {
	module:{
		list: {
			url: `${config.API_URL}/hm4/module/list`,
			name: "查询module",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		/*

		Promise.all([ import('./moduleA.js'), import('./moduleB.js'), ]).then(([moduleA, moduleB]) => { // 使用moduleA和moduleB });
		*/

	},
	customer: {
		search: {
			url: `${config.API_URL}/hm4/customer/search`,
			name: "查询顾客",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/hm4/customer/show`,
			name: "显示顾客",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
	},
	familyCard: {
		list: {
			url: `${config.API_URL}/hm4/family/card/list`,
			name: "家庭成员",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
	},
}
